package com.nuanshui.heatedloan.credit.facade;

import com.nuanshui.heatedloan.credit.form.CustomerAddressListInfoForm;
import com.nuanshui.heatedloan.credit.form.CustomerCallRecordListInfoForm;
import com.nuanshui.heatedloan.credit.model.BatchInsertAddressListResult;
import com.nuanshui.heatedloan.credit.vo.CustomerAddressListInfoVO;

import java.util.List;
import java.util.Map;

/**
 * Created by wangxw on 2017/7/6.
 */
public interface CustomerAddressListInfoService {

    /***
     * 发送到消息队列中去
     * @param customerAddressListInfos
     */
    void sendAddressListMsg(List<CustomerAddressListInfoForm> customerAddressListInfos);

    /***
     * 批量插入通讯录
     * @param customerAddressListInfos
     */
    void batchInsertAddressList(List<CustomerAddressListInfoForm> customerAddressListInfos);

    /***
     * 获取上次批量插入是否成功
     * @param userId
     * @return
     */
    Map<String,Object> getbatchInsertAddressListResult(String userId, int type);

    /***
     * 插入批量插入结果
     * @param batchInsertAddressListResult
     */
    void  insertBatchInsertAddressListResult(BatchInsertAddressListResult batchInsertAddressListResult);


    /***
     *更新插入结果
     * @param userId
     * @param type
     * @param isSuccess
     */
    void updateBatchInsertAddressListResult(String userId, int type, int isSuccess);

    /***
     * 插入结果判定  看是插入还是修改
     * @param type
     * @param isSuccess
     * @param userId
     */
    void insertBatchInsertAddressListResultService(int type, int isSuccess, String userId);



    /***
     * 发送到消息队列中去
     * @param customerCallRecordListInfoForms
     */
    void sendCallRecordListMsg(List<CustomerCallRecordListInfoForm> customerCallRecordListInfoForms);

    /***
     * 批量插入通话记录
     * @param customerCallRecordListInfoForms
     */
    void batchInsertCustomerCallRecordList(List<CustomerCallRecordListInfoForm> customerCallRecordListInfoForms);

    /***
     * 获取通讯录根据用户id
     * @param userId
     * @return
     */
    List<CustomerAddressListInfoVO> loadAddressListVOByUserId(String userId);


}
